package com.tanquandan.askbackend.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tanquandan.askbackend.entity.Course;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CourseMapper extends BaseMapper<Course> {
    List<Course> listCourseByKeyword(long keywordId);
    Integer countCourse2User(Long courseId,Long userId);
    Integer saveCourse2User(Long courseId,Long userId);
    Integer updateCourse2User(Long courseId,Long userId);
    List<Course> listRecommendsByUser(Long userId);
}
